3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D provides routines for creating and managing Macintosh storage objects.
You can use the Q3MacintoshStorage_New function to create a new Macintosh storage object.
TQ3StorageObject Q3MacintoshStorage_New (short fsRefNum);
The Q3MacintoshStorage_New function returns, as its function result, a new storage object associated with the Macintosh file specified by the fsRefNum parameter. The specified file is assumed to be open, and it must remain open as long as you use the returned storage object. In addition, you are responsible for closing the file once the associated storage object has been closed or disposed of. If Q3MacintoshStorage_New cannot create a new storage object, it returns the value NULL .
You can use the Q3MacintoshStorage_Get function to get information about a Macintosh storage object.
TQ3Status Q3MacintoshStorage_Get (
TQ3StorageObject storage,
short *fsRefNum);
You can use the Q3MacintoshStorage_Set function to set information about a Macintosh storage object.
TQ3Status Q3MacintoshStorage_Set (
TQ3StorageObject storage,
short fsRefNum);
The Q3MacintoshStorage_Set function sets the file reference number of the file associated with the Macintosh storage object specified by the storage parameter to the number specified by the fsRefNum parameter.
You can use the Q3MacintoshStorage_GetType function to get the type of a Macintosh storage object.
TQ3ObjectType Q3MacintoshStorage_GetType (TQ3StorageObject storage);
The Q3MacintoshStorage_GetType function returns, as its function result, the type of the Macintosh storage object specified by the storage parameter. The types of Macintosh storage objects currently supported by QuickDraw 3D are defined by this constant:
kQ3MacintoshStorageTypeFSSpec
If the specified memory storage object is invalid or is not of this type, Q3MacintoshStorage_GetType returns the value kQ3ObjectTypeInvalid .
Previous | QD3D Book | Overview | Chapter Contents | Next |